// 静态信息
export interface StaticInfoReq {
    sn: string;
    start_date: string;
    end_date: string;
    userid: number;
}

export interface StaticInfoRes {
    start_date: string;
    end_date: string;
    sn: string;
    select_days: string;
    use_days: string;
    not_use_days: string;
    usetime: string;
    usetime_avg_select: string;
    usetime_avg_use: string;
    usage_days_select: string;
    usage_days_use: string;
    usage_days_select_not: string;
    usage_days_use_not: string;
    time_max: string;
    time_min: string;
    apnea: number;
    hi: number;
    ahi: number;
    odi: number;
    pressure_max: number;
    pressure_avg: number;
    pressure_95: number;
    leak_max: number;
    leak_avg: number;
    tv_max: number;
    tv_avg: number;
    rr_max: number;
    rr_avg: number;
    spo_avg: number;
    spo_min: number;
    pulse_avg: number;
    img: string;
    usetimes: number;
    usage_days_uses: number;
    usage_days_uses_not: number;
}

// 参数信息
export interface ParamInfoReq {
    sn: string;
    start_date: string;
    end_date: string;
    userid: number;
}

export interface ParamInfoRes {
    [key: string]: string[];
}

// 柱状图表数据
export interface BarChartReq {
    sn: string;
    start_date: string;
    end_date: string;
    userid: number;
}

export interface BarChartRes {
    dates: string[];
    sumtime: number[];
    usetime: string[];
    usetimes: (null | number)[][];
    pressure_max: (number | string)[];
    pressure_95: (number | string)[];
    pressure_avg: (number | string)[];
    leak_max: number[];
    leak_avg: number[];
    ahi: number[];
    hi: number[];
    spo_avg: number[];
    spo_min: number[];
    pulse_avg: number[];
    pulse_min: number[];
}
